$(document).ready(function(){ 
	var navHeight= $("#navHeight").offset().top; 
	var navFix=$("#nav_wrap"); 
	$(window).scroll(function(){ 
		if($(this).scrollTop()>navHeight){ 
			navFix.addClass("navFix"); 
		} 
		else{ 
			navFix.removeClass("navFix"); 
		} 
		}) 
	})
//内容信息导航锚点
   $('.nav_wrap').navScroll({
	  mobileDropdown: true,
	  mobileBreakpoint: 768,
	  scrollSpy: true
    }); 
    
    
;(function ($, window, document, undefined) {
    'use strict';
    NavScroll.prototype = {
  
      scrollspy: function(navItem, scrollItems) {
        var scrollPos, i, l;
        scrollPos = (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop;
  
        l = navItem.length;
  
        for (i = 0; l > i; i++) {
          var item = scrollItems[i];
          if (scrollPos > (item.offset().top-60)) {
            navItem.removeClass('active');
            $(navItem[i]).addClass('active');
          }
        }
      }
    };
  
  })(jQuery, window, document);